<%@page import="dto.DataManager"%>
<%@page import="model.User"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<jsp:useBean id="dataManager" class="dto.DataManager"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript" src="js/scrip.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>Insert title here</title>
</head>
<body>
	<div class="master-wrapper-content">
		<jsp:include page="heading.jsp"></jsp:include>
		<jsp:include page="listCategory.jsp"></jsp:include>
		<div class="container-right">

			<%
				String username = (String) session.getAttribute("username");
				User user = dataManager.getUserWithUserName(username);
			%>

			<fieldset class="account_info">
				<legend>Thông tin tài khoản</legend>
				<table>
					<tr>
						<td>Tên đăng nhập</td>
						<td>: <%=username%></td>
					</tr>
					<tr>
						<td>Email</td>
						<td>: <%=user.getEmail()%></td>
					</tr>
					<tr>
						<td>Số tiền hiện tại</td>
						<td>:<span id="displayMoney"> <%=user.getOwnMoney()%></span>
							Việt Nam Đồng
						</td>
					</tr>
					<tr>
						<td></td>
						<td><a href="#" id="link_change_pass"> Đổi mật khẩu</a></td>
					</tr>

				</table>

				<div id="change_pass_form">
					<table>
						<tbody>
							<tr>
								<td>Mật khẩu cũ</td>
								<td><input type="password" id="oldPass" /></td>
							</tr>

							<tr>
								<td>Mật khẩu mới</td>
								<td><input type="password" id="newPass" /></td>
							</tr>

							<tr>
								<td>Nhập lại mật khẩu mới</td>
								<td><input type="password" id="newPassAgain" /></td>
							</tr>


						</tbody>
					</table>
					<div class="change_pass_button">
						<input type="button" id="change_pass_submit" value="thay đổi" /> <input
							type="button" id="change_pass_cancel" value="hủy bỏ" />
					</div>

				</div>

			</fieldset>


			<fieldset class="addCard">
				<legend>Nạp thêm tiền vào tài khoản</legend>
				<p>Nhập mã sỗ thẻ cào vào ô trống để nạp tiền</p>
				<form>

					<input type="text" name="serialCard" /> <input type="button"
						onclick="addCard()" value="Nạp" />
				</form>
			</fieldset>





		</div>
		<div class="clear"></div>
		<jsp:include page="footer.jsp"></jsp:include>
	</div>

</body>
</html>